package com.zenith.yasoo.setup;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import com.zui.base.BaseEntity;





@Entity
@Table(name="uom")
public class Uom extends BaseEntity {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(length=20)
	private String uomId;
	@OneToOne
	@JoinColumn(name="uomTypeId")
	private UomType uomType;
	
	private String abbreviation;
	
	
	/**
	 * @return the uomId
	 */
	public String getUomId() {
		return uomId;
	}
	/**
	 * @param uomId the uomId to set
	 */
	public void setUomId(String uomId) {
		this.uomId = uomId;
	}
	/**
	 * @return the uomType
	 */
	public UomType getUomType() {
		return uomType;
	}
	/**
	 * @param uomType the uomType to set
	 */
	public void setUomType(UomType uomType) {
		this.uomType = uomType;
	}
	/**
	 * @return the abbreviation
	 */
	public String getAbbreviation() {
		return abbreviation;
	}
	/**
	 * @param abbreviation the abbreviation to set
	 */
	public void setAbbreviation(String abbreviation) {
		this.abbreviation = abbreviation;
	}

	
}
